home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaDemoCD2.iso / ASCII / TEXTE / SCENE / AMIGA / Useful-Amiga / ANSI text colours < prev    next >
Encoding:
Text File  |  1994-05-14  |  2.4 KB  |  53 lines

  1.  
  2.               All the possible ANSI color combinations
  3.  
  4.  
  5. Well, this is really a simple idea... but I needed it for work on other
  6. projects, and I thought others might find it useful as well...
  7.  
  8. Nick MacDonald
  9. i6t4@jupiter.sun.csd.unb.ca
  10.  
  11. These are the codes for various foreground/background pairs...
  12.  
  13. 0 - normal
  14. 1 - bold
  15. 2 - highlight
  16. 3 - italic
  17. 4 - underline
  18. 7 - reverse
  19.  
  20.  0m  0;1m    0;2m    0;3m    0;4m    0;7m
  21.        1m  0;1;2m  0;1;3m  0;1;4m  0;1;7m
  22.                2m  0;2;3m  0;2;4m  0;2;7m
  23.                        3m  0;3;4m  0;3;7m
  24.                                4m  0;4;7m
  25.  
  26.  0;1;2;3m  0;1;2;4m  0;1;2;7m
  27.            0;1;3;4m  0;1;3;7m
  28.                      0;1;4;7m
  29.  
  30.  0;1;2;3;4m  0;1;2;3;7m
  31.              0;1;2;4;7m
  32.  
  33.  0;1;2;3;4;7m
  34.  
  35. And then there are the colors...
  36.  
  37. 30-37 Set forground to system color 0-7
  38. 40-47 Set background to system color 0-7
  39. 39    Reset back to default colors
  40.  
  41.     40 41 42 43 44 45 46 47
  42. 30  XX XX XX XX XX XX XX XX
  43. 31  XX XX XX XX XX XX XX XX
  44. 32  XX XX XX XX XX XX XX XX
  45. 33  XX XX XX XX XX XX XX XX
  46. 34  XX XX XX XX XX XX XX XX
  47. 35  XX XX XX XX XX XX XX XX
  48. 36  XX XX XX XX XX XX XX XX
  49. 37  XX XX XX XX XX XX XX XX
  50.  
  51. ItalicsUnderline, and Reverse all still work as well.
  52.  
  53.